package dd.prog2.musterExercises.ws12set07_tanks;

import java.util.Iterator;

/**
 * Common interface for all tank components (basic and composite).
 * @author Ruediger Lunde
 */
public interface Tank extends Iterable<Tank>, Cloneable {

	/** Returns the surface of the tank. */
	double getSurface();
	/** Returns the volume of the tank. */
	double getVolume();
	/** Iterates across the parts of the tank if any. */
	Iterator<Tank> iterator();
	/** Clones the tank. */
	Tank clone();
	
}
